<%= tr8n_with_options_tag(:default_locale => Tr8n::Config.default_admin_locale, :admin => true) do %>

	<%= render :partial => "/tr8n/common/header" %>
	
	<% if @topic %>
	  <div class="section_title tr8n_txtl">
	    <div class="tr8n_fltr" style="padding-top:20px; font-size:12px; color: #ccc;">
	      <%=link_to(image_tag("tr8n/reply.png") + " " + tra("Reply", "Reply button for forum topics"), :topic_id => @topic.id, :page => params[:page], :anchor => :reply_message) %> 
	      &nbsp; |  &nbsp; 
	      <%=link_to(image_tag("tr8n/plus.png") + " " + tra("Start a new discussion topic"), :mode => :create) %>
	    </div>
	
	    <div class="tr8n_txtl" style="color:grey;font-size:16px;font-weight:bold">
			  <% if @topic.language %>
	        <%=link_to(tra("{language} Language Forum", nil, :language => @topic.language.native_name), :action => :index)%>
				<% else %>
	        <%=link_to(tra("General Forum"), :action => :index)%>
				<% end %>	 
				 &raquo; <%=link_to(@topic.topic, :topic_id => @topic.id)%>
	    </div>
			
	    <div class="tr8n_txtl" style="color:grey;font-size:12px;font-style:italic;padding-top:3px;padding-bottom:3px;">
	       <%= tra("Started by {user} on {date}", "", 
	            {:user => [@topic.translator.user, tr8n_user_tag(@topic.translator, :linked => true)], :date => @topic.created_at.trl}) %>
	    </div>
	  </div>
	  <%= render :partial => "messages" %>
	  <%= render :partial => "new_message" %>  
	<% else %>
	  <%= render :partial => "new_topic", :locals => {:include_cancel_button => true} %>
	<% end %>
	
	<%= render :partial => "/tr8n/common/footer" %>
	
<% end %>